import numpy as np
import pandas as pd
s1 = pd.Series([1,5,7,19])
print('使用列表创建的Series对象s1: \n', s1)
arr = pd.array([1,5,7,8])
s2 = pd.Series(arr,['a','c','y','n'])
print('使用数组创建的Series对象s2: \n', s2)
s3 = pd.Series({'a':5,'c':7,'d':9,'e':6})
print('使用字典创建的Series对象s3: \n', s3)